package com.rongc.client.freight.business.mine.request.api;


import com.android.volley.Response;
import com.rongc.client.core.network.api.AbsRequest;
import com.rongc.client.core.network.params.BaseParams;
import com.rongc.client.freight.ApiUrl;

import org.json.JSONObject;


/*
*  获取版本
* */
public class VersionApi extends AbsRequest<VersionApi.VersionParams, JSONObject> {

    public VersionApi(VersionParams feedbackParams, Response.Listener<JSONObject> listener, Response.ErrorListener errorListener) {
        super(Method.POST, ApiUrl.getVersionUrl(), feedbackParams, listener, errorListener, JSONObject.class);
    }

    public static class VersionParams extends BaseParams {

        public VersionParams(String code) {
            put("id",code);
        }
    }
}
